package com.atqinke.designpattern.creationtype.prototype.copy;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.DesignPattern.creation.prototype
 * @Author: NieHk
 * @CreateTime: 2022-08-25  23:13
 * @Description: 浅拷贝类
 * @Version: 1.0
 */
public class LightCopy implements Cloneable{
    private Other other = new Other("张三");

    @Override
    public LightCopy clone() throws CloneNotSupportedException {
        return (LightCopy)super.clone();
    }

    public Other getOther() {
        return other;
    }

    public void setOther(Other other) {
        this.other = other;
    }
}
